home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 1.toast / Technical Documentation / Develop / Additional Articles / Developing Symbiotic Apps / Symbiotic Samples / Symbiotic client source / Trident.cw10_pp / CTridentIdler.h < prev    next >
Encoding:
Text File  |  1996-08-19  |  937 b   |  33 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    CTridentIdler.h                    ©1995 Metrowerks Inc. All rights reserved.
  3. //
  4. // ===========================================================================
  5.  
  6. #ifdef __MWERKS__
  7. #    pragma once
  8. #endif
  9. #include "CTridentView.h"
  10. #include <LPeriodical.h>
  11. class CTridentView;
  12.  
  13. /*
  14. class CHeartBeatMonitor    : public LPeriodical 
  15. {
  16. public:
  17.                     CHeartBeatMonitor(const Boolean &inMonitor);
  18.     virtual    void        SpendTime(const EventRecord &inMacEvent);
  19.             void        ResetTicks();                        
  20.              short     fLastHeartBeat;  //ticks!  1/60th second
  21. };
  22. */
  23. class CHeartBeatIdler : public LPeriodical 
  24. {
  25. public:
  26.                     CHeartBeatIdler();
  27.     virtual    void        SpendTime(const EventRecord &inMacEvent);
  28.     void                ResetTicks();                        
  29.     void                SetOwnerView(CTridentView*  theOwner);                        
  30.      long             fLastHeartBeat;  //ticks!  1/60th second
  31.      CTridentView*        fOwnerView;     //who will sent AE when the time comes!
  32. };
  33.